let loading =   {
	namespaced:true,
	state: {
		demoScrollTop: 0,
		isLoading: false,
		direction: 'forward',
		showMore:true,
		routeState:'home',
	  },
	  mutations: {
	  	changeRoute(state,payload){
			state.routeState = payload
	  	},
	  	changeShowMore(state,payload){
	  		state.showMore = payload
	  	},
	  	updateDemoPosition (state, payload) {
	  	  state.demoScrollTop = payload.top
	  	},
	  	updateLoadingStatus (state, payload) {
	  	  state.isLoading = payload.isLoading
	  	},
	  	updateDirection (state, payload) {
	  	  state.direction = payload.direction
	  	},
	  },
	  actions: {
	    updateDemoPosition ({commit}, top) {
	      commit({type: 'updateDemoPosition', top: top})
	    }
	  }
}
export default loading;